﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace TheCup
{
    // For clientside charting
    public class AvgStats
    {
        public int year { get; set; }

        // does not work for json data with standard JsonResult
        [DisplayFormat(DataFormatString="{0:N2}")]
        public decimal? putts { get; set; }
        public decimal? avgputts { get; set; }

        // does not work for json data with standard JsonResult
        [DisplayFormat(DataFormatString = "{0:N2}")]
        public decimal? strokes { get; set; }
        public decimal? avgstrokes { get; set; }

    }
}